﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace DeviceServer
{
   static   class Class1
    {
        public static string GetKey(this IPEndPoint ipEndPoint)
        {
            string ip = ipEndPoint.Address.ToString();
            var port = ipEndPoint.Port;
            //return ip ;
            return ip + "-" + port;
        }
    }
}
